#include <stdio.h>

double GetPower(double x, int n) {
    if (n <= 1) {
        return x;
    }
    return x * GetPower(x, n - 1);
}

int main() {
    double x = 2;
    double ret = GetPower(x, 3);
    printf("%f", ret);
    return 0;
}